package com.etone.smartAudit.dto.task;

import com.etone.smartAudit.dto.dataModel.NewIapDataModelDTO;
import com.etone.smartAudit.enums.IapDataField;
import com.etone.smartAudit.vo.FileVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/12/8
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "NewDataApplyDTO", description = "新数据申请表单")
public class NewDataApplyDTO extends BaseTaskDTO implements Serializable {

    @ApiModelProperty("已知元数据信息")
    @NotNull
    private Boolean isKnowModel;

    @ApiModelProperty("数据模型")
    private List<NewIapDataModelDTO> iapDataModel;

    @ApiModelProperty("申请原因")
    private String cause;

    @ApiModelProperty("系统平台id")
    private Integer platformId;

    @ApiModelProperty("系统平台名称")
    private String platformName;

    @ApiModelProperty("所属域")
    private IapDataField dataField;

    @ApiModelProperty("数据描述")
    private String modelRemark;

    @ApiModelProperty("附件模板")
    private List<FileVO> templates;

    @ApiModelProperty("相关附件")
    private List<FileVO> otherFiles;

}
